package com.boatAnchorAssistant.pojo.entity;

import com.boatAnchorAssistant.pojo.check.Check;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import javax.persistence.Table;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/11/11 13:45
 * 报警原因
 */
@Data
@Table
@AccEntity(value = "报警原因",type = EntityType.SERVICE_ENTITY)
@TableComment("报警原因")
public class AlarmCause extends DomainBaseEntity<AlarmCause> {
    /**
     * 所属报警类型id
     */
    @Column(type = MySqlTypeConstant.BIGINT,
            comment = "所属报警类型id")
    private Long typeId;

    /**
     * 编号
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "编号")
    @Check
    private String code;

    /**
     * 报警原因
     */
    @Column(type = MySqlTypeConstant.VARCHAR,
            comment = "报警原因")
    private String name;

}
